using System;
using System.Collections.Generic;
using System.Text;
using Ghasam.Business.Domain.Entity;
using NHibernate.Expression;
using NHibernate;

namespace Ghasam.Business.DAO.Impl
{
    public class InternalAccountDao : DaoBase<InternalAccount>, IInternalAccountDao
    {
        public IList<InternalAccount> SortInternalAccount(string param, bool asc)
        {
            Order dir = new Order(param, asc);
            ICriteria crit = base.Session.CreateCriteria(typeof(InternalAccount));
            crit.AddOrder(dir);
            return crit.List<InternalAccount>();
        }
    }
}
